package com.zhao.dialogdemo;

import android.app.Application;
import android.content.Intent;

/**
 * Created by 赵岩 on 2019/5/20.
 */
public class App extends Application {
    private RxBus bus;
    public static App instance;

    @Override
    public void onCreate() {
        super.onCreate();
        bus = new RxBus();
        instance = this;//dapdafpadjfpodapofadpof
    }

    public RxBus bus() {
        return bus;//woshi

      //nishi112 我问问
    }

    public static App getInstance() {
        return instance;
    }
    public void getDialog1() {
        Intent intent = new Intent(getApplicationContext(), BaseUiActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }
    public void getDialog() {
        Intent intent = new Intent(getApplicationContext(), ThreeActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }
}
